//
//  ShopListController.h
//  L7_test
//
//  Created by Mac on 11-12-30.
//  Copyright (c) 2011年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AudioToolbox/AudioToolbox.h>
#import "BaseViewController.h"
#import "SupplierManager.h"
#import <MessageUI/MessageUI.h>
#import <QuartzCore/QuartzCore.h>
#import "AppDelegate.h"
#import "FMDBSupplierManager.h"
#import "EGORefreshTableHeaderView.h"
#import "MBProgressHUD.h"
#import "DetailShopViewController.h"

@interface ShopListController : BaseViewController <UIPickerViewDelegate,UIPickerViewDataSource,EGORefreshTableHeaderDelegate,UITableViewDelegate,UITableViewDataSource,UIScrollViewDelegate,MBProgressHUDDelegate>{
//    FMDBSupplierManager *fmdbSupplierManager;
}
@property (strong, nonatomic) SupplierManager *manager;
@property (strong, nonatomic) NSArray *suppliers;
@property int currentPage; 
@property (strong, nonatomic) NSString *usingPickerView;
@property (strong, nonatomic) UIButton *addBtn;
@property (strong, nonatomic) UIButton *typeBtn;
@property (strong, nonatomic) UIButton *timeBtn;
@property (strong, nonatomic) UIImageView *tiaoImageView;
@property (strong, nonatomic) UIButton *submitButton;            //确定按钮
@property (strong, nonatomic) UIButton *cancelButton;            //取消按钮
@property (strong, nonatomic) UITableView *tableViews;
@property (strong, nonatomic) AppDelegate *appDelegate;
@property (strong, nonatomic) EGORefreshTableHeaderView *_refreshHeaderView;
@property BOOL _reloading;
@property (strong, nonatomic) MBProgressHUD *HUD;
@property (strong, nonatomic) NSString *road;
//@property (strong, nonatomic) NSString *currentPageString;
@property (strong, nonatomic) NSString *isSelling;
@property BOOL isTouched;
@property (strong, nonatomic) UIPickerView *addressPickerView;   //路段选取器
@property (strong, nonatomic) UIPickerView *typePickerView;      //类型选取器
@property (strong, nonatomic) UIPickerView *shopHoursPickerView; //营业时间选取器
@property (strong, nonatomic) NSArray *addressTestData;          //地址选取器测试数据
@property (strong, nonatomic) NSMutableArray *typeTestData;      //类型选取器数据
@property (strong, nonatomic) NSArray *shopHoursTestData;        //营业时间选取;

-(void) hiddenPickerView;

//- (IBAction)showPickerViewAction:(id)sender;                     //显示选取器
//- (IBAction)pickerEndButtonPress:(id)sender;                     //点击pickerView上的确定按钮触发的事件
//2012.6.30删除
//@property (retain, nonatomic) IBOutlet UIActivityIndicatorView *activityIndicatorView;

@end
